<!DOCTYPE html>
<html>
    <head>
        <title>${APP.name!'简单开发平台'}</title>
        <meta http-equiv="Expires" CONTENT="0">
        <meta http-equiv="Cache-Control" CONTENT="no-cache">
        <meta http-equiv="Pragma" CONTENT="no-cache">
        <%include("/eova/meta.html"){}%>
        <%include("/eova/include.html"){}%>
        <link rel="stylesheet" type="text/css" href="/eova/ui/css/index.css" />
    </head>
    <body id="mainLayout" class="easyui-layout" style="border: solid 0px red;font-size: 12px;">
        <div id="northDiv" data-options="region:'north',href:'/header'" style="height: 62px; overflow: hidden;background-color: #21304c"></div>
        <div id="westDiv" data-options="region:'west',href:'',split:true" title="${I18N('菜单导航')}" style="width: 220px; overflow: hidden;border: solid 0px red;background-color: #21304c">
            <!--Left Menu Tree-->
            <div class="easyui-panel" data-options="fit:true" style="border: solid 0px red;background-color: #21304c">
                <ul id="menu" class="ztree" style="color:white;"></ul>
            </div>
        </div>
        <!--, collapsed:true<div data-options="region:'east',href:'',split:true" title="全局搜索" style="width: 230px; overflow: hidden;">-->
        <!--<input type="text" name="test001" id="test001" value="" />-->
        <!--</div>-->
        <div data-options="region:'center'" style="overflow: hidden;border: solid 0px red;margin-top: -1px;">
            <div id="mainTabs" style="border: solid 0px red;"></div>
        </div>
        <div id="southDiv" data-options="region:'south',href:'/footer',border:false" style="height: 30px; overflow: hidden;border: solid 0px red;"></div>

        <div id="tabsMenu" style="border: solid 0px red;">
        	<%if(session.user.isAdmin){%>
            <div data-options="iconCls:'eova-icon1051'" type="menu_edit">快速编辑菜单</div>
            <%}%>
            <div data-options="iconCls:'eova-icon198'" type="close">${I18N('关闭')}</div>
            <div data-options="iconCls:'eova-icon198'" type="closeOther">${I18N('关闭其他')}</div>
            <div data-options="iconCls:'eova-icon357'" type="closeAll">${I18N('关闭所有')}</div>
        </div>
    <script src="/eova/ui/js/index.js"></script>
    </body>
	<script>
		var APP_MAIN = '${APP_MAIN!}'; 
		var APP_MAIN_TITLE = '${APP_MAIN_TITLE!}';

        function showOVDiv(divid) {
            if($("#shade_"+divid).length == 0) {
                var top = $("#"+divid).offset().top;
                var left = $("#"+divid).offset().left;
                var width = $("#"+divid).width();
                var height = $("#"+divid).height();
                if("northDiv"==divid){	//北
                    height = height + 35;
                }else if("westDiv"==divid){	//西
                    top = top +2;
                    width = width + 8;
                    height = height - 9;
                }else if("southDiv"==divid) {	//南
                    top = top - 8;
                    height = height + 8;
                }
                $("<div id='shade_"+divid+"' style='opacity:0.5;background:#000'></div>").css({
                    position:'fixed',
                    top:(top)+'px',
                    left:(left)+'px',
                    zIndex:999,
                    height:(height)+'px',
                    width:(width)+'px'
                }).appendTo('#'+divid);
            }else {
                $("#shade_"+divid).show();
            }
        }
        function closeOVDiv(divid) {
            $("#shade_"+divid).hide();
            $("#shade_"+divid).remove();
        }

        function showDiglog(){
            showOVDiv("northDiv");
            showOVDiv("westDiv");
            showOVDiv("southDiv");
        }
        function closeDiglog(){
            closeOVDiv("northDiv");
            closeOVDiv("westDiv");
            closeOVDiv("southDiv");
        }
	</script>
</html>